[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
INPUTTEXT SEXP,VAR,IEXP1,IEXP2
Function
Prompt (SEXP) the user in a specified color (IEXP1) for a string of text
of specified length (IEXP2) and store it in a specified variable (VAR).
Syntax
INPUTTEXT prompt,var,color,len
prompt - A string expression with the prompt to display to the user.
var - The variable in which to store the user's input.
color - An integer expression with the color to display the prompt in.
len - An integer expression with maximum length of text to input.
Remarks
This statement will accept any string of input from the user, up to the
length defined. In addition to displaying the prompt, it will display
parenthesis around the input field if the user is in ANSI mode. Because
of this, you should generally limit your prompts to (80-len-4) characters
or less.
Examples
BOOLEAN b
DATE d
INTEGER i
MONEY m
STRING s
TIME t
INPUTTEXT "Enter BOOLEAN",b,@X0E,1
INPUTTEXT "Enter DATE",d,@X0F,8
INPUTTEXT "Enter INTEGER",i,@X07,20
INPUTTEXT "Enter MONEY",m,@X08,9
INPUTTEXT "Enter STRING",s,@X09,63
INPUTTEXT "Enter TIME",t,@X0A,5
PRINTLN b," ",d," ",i
PRINTLN m," ",s," ",t
See Also:
INPUT
INPUT...
INPUTSTR
PROMPTSTR
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson